package atm;

import javax.swing.*;
import java.awt.*;

public class GetPanel extends JPanel {
    private ImageIcon sure = new ImageIcon("images/buttonSure.jpg");
    private JLabel getMoney = new JLabel("取款金额：");
    private JTextField moneyField = new JTextField();
    private JButton sureBtn = new JButton(sure);
    private Font font = new Font("黑体", Font.BOLD, 20);

    public GetPanel() {
        this.setLayout(null);
        this.add(sureBtn);
        this.add(getMoney);
        this.add(moneyField);
        getMoney.setBounds(300, 200, 120, 50);
        sureBtn.setBounds(400, 260, 140, 50);
        moneyField.setBounds(400, 200, 140, 50);
        getMoney.setFont(font);

        this.setOpaque(false);
    }
}